// Maple Road: Entrance to Adventurer Training Center (1010000)
// Portal to enter Adventurer Training Center
// TODO: check if the player has those quests active

void portal(Player @player, Portal @portal) {
if (player.getLevel() > 10) {
player.showMessage('Only the adventurers that have been trained by Mai may enter.');
return;
}
if (player.getQuest(1044) != 0)
player.changeMap(1010400, "out00");
else
if (player.getQuest(1043) != 0)
player.changeMap(1010300, "out00");
else
if (player.getQuest(1042) != 0)
player.changeMap(1010200, "out00");
else
if (player.getQuest(1041) != 0)
player.changeMap(1010100, "out00");
else
player.showMessage('Only the adventurers that have been trained by Mai may enter.');
}